<?php  
include('../../config/config.php');
session_start();
$dep = $_SESSION['ID_DEPARTEMEN'];
if($_POST["button"] == "Tambah")  

{
	
	$namateam = $_POST['namateam'];
	
	
	
		$sql = "INSERT INTO team( NAMA_TEAM, ID_DEPARTEMEN)
		VALUES ('$namateam','$dep')";
		$result = mysql_query($sql) or die(mysql_error());;
		mysql_close();
		header('Location: /mpd/ad/view/tambahteam.php');
}
?>